<template>
  <div class="home">
    <Header @ComponentLink="changeComponent"></Header>
    <component :is="componentView"></component>
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
import HomeBanner from "@/components/home/HomeBanner.vue"
export default {
  name: "HomeView",
  components: {
    Header,
    HomeBanner
  },
  data() {
    return {
      componentView: 'HomeBanner'
    };
  },
  methods: {
    changeComponent(data) {
      console.log(data);
    },
  },
};
</script>
